package com.cyl.manager.oms.convert;

import org.mapstruct.Mapper;

import com.cyl.manager.oms.domain.dto.OrderItemPrepareDTO;
import com.cyl.manager.oms.domain.entity.OrderItemPrepare;
import com.cyl.manager.oms.domain.vo.OrderItemPrepareVO;

import java.util.List;
/**
 * 备货管理  DO <=> DTO <=> VO / BO / Query
 *
 * @author zcc
 */
@Mapper(componentModel = "spring")
public interface OrderItemPrepareConvert  {

    /**
     * @param source DO
     * @return DTO
     */
    OrderItemPrepareDTO do2dto(OrderItemPrepare source);

    /**
     * @param source DTO
     * @return DO
     */
    OrderItemPrepare dto2do(OrderItemPrepareDTO source);

    List<OrderItemPrepareVO> dos2vos(List<OrderItemPrepare> list);
}
